package com.xxl.job.executor.mvc.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@EnableAutoConfiguration
public class IndexController {

   @RequestMapping("/")
   @ResponseBody
   String index() {
       return "xxl job executor running.";
   }

    @RequestMapping("/exception")
    @ResponseBody
    void exception() {
        int d = 1 / 0;
    }
}